package Day01_java基础.Java07_运算符;

public class 赋值运算符 {
    public static void main(String[] args) {
        int a = 10;
        int b = 20;
        a+=b; //a = a+b
        a-=b; //a = a-b
        System.out.println(a);
        //字符串连接符 + ,当识别到String类型，默认会连接字符串
        System.out.println(""+a+b);
        //字符串在后，先计算在拼接
        System.out.println(a+b+"");
    }
}
